package org.knowlege
import org.product.Product

class Knowlege {
	static searchable= { spellCheck "include" }

	String content;
	Integer priority=0;
	String createUser
	Date dateCreated
	Date lastUpdated
	KnowlegeType knowlegeType
	Product product

	static belongsTo=[product:Product]
	
	static constraints = {
		knowlegeType()
		content(widget:'textarea')
		createUser(blank:true)
		dateCreated()
	}
	static mapping={ sort "priority" }
	def beforeInsert={
	}
	
}
